#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>

typedef int StackType;
typedef struct Stack 
{
	StackType* a;
	int top;
	int capacity;
}ST;

void StackInit(ST* ps);
void StackDestory(ST* ps);
void StackPush(ST* ps, StackType x);
void StackPop(ST* ps);
void StackPrint(ST* ps);
StackType Stacktop(ST* ps);
int Stacksize(ST* ps);